/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-07-26 17:45:30  
 * Copyright (c) 2015- -版权所有     
 */
package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.BpDeviceFacilityAttachmentDesc;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

import java.util.List;


/**
 * BpDeviceFacilityAttachmentDescDao
 *
 */
public interface BpDeviceFacilityAttachmentDescDao extends JpaRepository<BpDeviceFacilityAttachmentDesc, Long>, QuerydslPredicateExecutor<BpDeviceFacilityAttachmentDesc>  {
    public Page<BpDeviceFacilityAttachmentDesc> findAll(Specification<BpDeviceFacilityAttachmentDesc> spec, Pageable pageable);

    public BpDeviceFacilityAttachmentDesc save(BpDeviceFacilityAttachmentDesc bean);

    public void delete(BpDeviceFacilityAttachmentDesc bean);
    
    List<BpDeviceFacilityAttachmentDesc> findAllByDeviceFacilityId(Long id);
}
